package com.lzh.others.java8.book;

import java.util.HashSet;
import java.util.List;

public class AssertEqualsUtil {

    public static void assertEquals(List<Integer> list, List<Integer> together) {
        if (new HashSet<>(list).containsAll(together) && new HashSet<>(together).containsAll(list)) {
            System.out.println("相等");
            return;
        }
        System.out.println("不相等");
    }
}
